<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
  <head>
    <title></title>
    <link rel="stylesheet" type="text/css" href="${path}/css/editTable.css">
    
    <script type="text/javascript">
    	function check(){
    		var lower_id = document.getElementById("lower_id").value;
     		if("" == lower_id || "0" == lower_id){
     			alert("渠道信息为空");
     			return false;
     		}
     		
     		var num = document.getElementById("num").value;
     		if("" == num){
     			alert("请输入扣量比例");
     			return false;
     		}
     		
     		var start_time = document.getElementById("start_time").value;
     		if("" == start_time){
     			alert("请输入开始时间");
     			return false;
     		}
     		
     		var end_time = document.getElementById("end_time").value;
     		if("" == end_time){
     			alert("请输入结束时间");
     			return false;
     		}
    	}
    </script>
  </head>
  <body>
    <div>
    	<form id="modifyLowerConfigFilterForm" name="modifyLowerConfigFilterForm" method="post" action="${path }/configFilter/updateLowerConfigFilter.action" onsubmit="return check();">
    		<p>修改渠道扣量信息</p>
    		<table>
    			<tr>
    				<td>渠道名称</td>
    				<td>
    					<input type="hidden" id="lower_id" name="configFilterVo.lower_id" value="${configFilterVo.lower_id }" />
    					<c:if test="${configLowerPartnerVoList != null && fn:length(configLowerPartnerVoList) > 0 }">
		    				<c:forEach items="${configLowerPartnerVoList }" var="configLowerPartnerVo" varStatus="i">
		    					<c:if test="${configLowerPartnerVo.id == configFilterVo.lower_id }">
		    						<input type="text" id="lower_name" name="configFilterVo.lower_name" value="${configLowerPartnerVo.name }" readonly="readonly" />
		    					</c:if>
		    				</c:forEach>
		    			</c:if>
    				</td>
    			</tr>
    			<tr>
    				<td>扣量省份</td>
    				<td>
    					<input type="hidden" id="province" name="configFilterVo.province" value="${configFilterVo.province }" />
    					<input type="text" value="<c:if test="${configFilterVo.province != '' }">${configFilterVo.province }</c:if><c:if test="${configFilterVo.province == '' }">全部</c:if>" readonly="readonly" />
    				</td>
    			</tr>
    			<tr>
    				<td>扣量比例</td>
    				<td>
    					<input type="text" id="num" name="configFilterVo.num" value="" />
    					%
    					<span style="color: red;size: 2px;">&nbsp;*必填项 &nbsp;&nbsp;&nbsp;&nbsp;采用百分比</span>
    				</td>
    			</tr>
    			<tr>
    				<td>开始时间</td>
    				<td>
    					<input type="text" id="start_time" name="configFilterVo.start_time" value="" />
    					<span style="color: red;size: 2px;">&nbsp;*必填项&nbsp;&nbsp;&nbsp;&nbsp;格式：XX:XX</span>
    				</td>
    			</tr>
    			<tr>
    				<td>结束时间</td>
    				<td>
    					<input type="text" id="end_time" name="configFilterVo.end_time" value="" />
    					<span style="color: red;size: 2px;">&nbsp;*必填项&nbsp;&nbsp;&nbsp;&nbsp;格式：XX:XX</span>
    				</td>
    			</tr>
    			<tr>
    				<td colspan="2">
    					<input type="submit" name="submit" value="确认" />
    				</td>
    			</tr>
    		</table>
    	</form>
    </div>
  </body>
</html>
